
local assert     = assert
local require    = require
local bit        = bit
local coroutine  = coroutine
local debug      = debug
local io         = io
local pairs      = pairs
local ipairs     = ipairs
local math       = math
local os         = os
local print      = print
local pcall      = pcall
local xpcall     = xpcall
local rawget     = rawget
local rawset     = rawset
local select     = select
local string     = string
local table      = table
local tonumber   = tonumber
local tostring	 = tostring
local error      = error
local type       = type
local next       = next
local unpack     = unpack
local setmetatable = setmetatable
local getmetatable = getmetatable
local ngx = ngx

local loadstring = loadstring

local ngx_shared = ngx.shared;

local math_floor = math.floor


local table_insert  = table.insert
local string_format = string.format
local table_concat  = table.concat
local table_sort    = table.sort
local string_sub    = string.sub
local string_byte   = string.byte

local log         = require("modules.commhm.log");
local cjson_safe  = require("cjson.safe");

local FOO = {
    _VERSION   = '0.12.1',
};


-----------打印html页面的帮助文件-----------

function FOO.get_html_comm_header()
    return "<html><head><meta charset=\"utf-8\"></head><body>"
end


function  FOO.get_html_comm_foot()
    return "</body></html>"
end


function FOO.get_return_index()
    local txt_ = [[
<dir><button onclick="back_index_page(1)" > 返 回 </button></dir>
<script type="text/javascript">
	function back_index_page(goto_){
		window.history.go(-1);
	}
</script>
]]
    return txt_
end


return FOO;